//--></SCRIPT><META NAME="DESCRIPTION" CONTENT="Internet Information Services reference information">
<META HTTP-EQUIV="PICS-Label" CONTENT='(PICS-1.1 "<http://www.rsac.org/ratingsv01.html>" l comment "RSACi North America Server" by "inet@microsoft.com <mailto:inet@microsoft.com>" r (n 0 s 0 v 0 l 0))'>
<META NAME="MS.LOCALE" CONTENT="EN-US">
<META NAME="MS-IT-LOC" Content="Internet Information Services">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H2><A NAME="_populating_fields"></A><SUP> <% If Request("DontFrame")<>1 Then Response.Redirect "/iissamples/sdk/asp/docs/SampFram.asp?ovfile=/iishelp/iis/htm/asp/asps7hpv.asp&srcfile=Interaction/PopulateForm" %></SUP>Populating Fields</H2>
<H6>Overview</H6>
<P>You can use forms to collect input from users, but you can also use them to display information as well. For example, if a client browser accesses your phone-directory search engine, you will want to show the results of their search. Your search script (which can be implemented in ASP as well) accepts input, accesses the database, and sends the results in a query string to your display form. This sample is a simple demonstration of how that display form would look.</P>
<H6>Code Tour</H6>
<P>For the purposes of this sample, the data is hard-coded into the script, but obviously the information could come from an interactive form, database, or text file. This sample starts by initializing the variables. It then creates a form with the HTML <FORM> tags and defines four text boxes. Using the server-side script delimiters <%= ...<B> </B>%>, the script then fills the text boxes with the values set in the initialization.</P>